package com.caifu.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.caifu.pojo.CUser;
import com.caifu.vo.UserVo;
import org.apache.ibatis.annotations.Select;

import java.util.List;
import java.util.Map;

public interface UserMapper extends BaseMapper<CUser>{
    /**
     *
     * @param orgId
     * @param deptId
     * @return
     */
    List<Map<String, Object>> listUserInfo(Integer orgId, Integer deptId);

    @Select("SELECT COUNT(*) FROM C_D_USER WHERE STATUS = '1' AND device_id = ${deviceId} AND PASSWORD = #{pwd} AND CREATE_TIME LIKE #{simpleDateOne} ")
    int countDUser(int deviceId, String pwd, String simpleDateOne);

    List<UserVo> getUserList(Map<String, Object> params);

    CUser selectUserInfo(String userNo);
}
